package com.zhang.crm.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 登录信息枚举
 * 200 - 500 成功类型
 * 500 ---  失败
 */
@AllArgsConstructor
public enum CodeEnum {
    LOGIN_SUCCESS(200,"登录成功"),
    LOGOUT_SUCCESS(200,"退出成功"),
    OPERATE_SUCCESS(200,"操作成功"),
    LOGIN_FAIL(501,"登录失败"),
    LOGIN_FAIL_ILLEGALITY(502,"您没有权限访问此网页"),
    NOT_USER_DETAIL(503,"用户信息查询失败"),
    LOGIN_FAIL_JWT_ILLEGALITY(900,"非法的token"),
    LOGIN_FAIL_JWT_EXPIRED(901,"token已过期"),
    LOGIN_FAIL_NO_LOGIN(902,"您还没有登录")

    ;
    @Getter
    @Setter
    private int code;

    @Getter
    @Setter
    private String msg;

}
